﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;

namespace CineProwl.Domain
{
    public class WebRequestService
    {
        internal string MakeWebRequest(string url)
        {
            HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(url);
            WebResponse response = httpRequest.GetResponse();
            System.IO.Stream stream = response.GetResponseStream();

            StreamReader streamReader = new StreamReader(stream);
            string responseString = streamReader.ReadToEnd();

            return responseString;
        }
    }
}
